package ljx;

import java.sql.Connection;
import java.sql.DriverManager;

public class test {
    public static void main(String[] args) {
        try {
            Class.forName("com.mysql.jdbc.Driver");
            Connection root = DriverManager.getConnection("jdbc:mysql://localhost:3306/myself?characterEncoding=UTF-8&useSSL=true", "root", "123456");

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
